package com.ruoyi.common.base.user.mapstruct;

import com.ruoyi.common.base.user.domain.Agent;
import com.ruoyi.common.base.user.vo.AgentAppVO;
import com.ruoyi.common.base.user.vo.UserToken;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * AgentStruct
 *
 * @author gdk
 * @version 1.0.0
 * @since 2022/2/8 3:04
 */
@Mapper
public interface AgentStruct {
    AgentStruct INSTANCE = Mappers.getMapper(AgentStruct.class);

    /**
     * Agent -> AgentAppVO
     *
     * @param entity 实体类
     * @return {@link UserToken}
     * @author gdk
     * @since 2022/2/8
     */
    AgentAppVO entity2AppVO(Agent entity);
}
